//导入模块
let axios = require('../utils/axios');
module.exports = {
  //1.添加订单
  creatOrder(orderInfo) {
    let url = 'http://123.56.83.71:2004/user/order';
   return axios.post(url,orderInfo);
  },
  //2.查询用户订单列表
  getOrderList(uid) {
    let url = 'http://123.56.83.71:2004/user/orderList';
   return axios.get(url,{uid});
  }
}